<template>
  <div>
    <img :src="src" width="160"  height="90" :min-width="minWidth" @click="isShowImageDialog=true">
    <el-dialog :visible.sync="isShowImageDialog" v-if="isShowImageDialog">
      <img :src="src" style="max-width: 100%;max-height: 100%;display: block; margin: 0 auto;"/>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    name: "img-preivew",
    props: {
      src: "",
      minWidth:60
    },
    data() {
      return {
        isShowImageDialog: false
      }
    },
    methods: {
    }
  }
</script>

<style scoped>

</style>
